<template>
  <div class="demo-page">
    <div class="demo-header">
      <h1>现代登录表单演示</h1>
      <p>基于参考代码设计的现代化登录界面</p>
    </div>
    
    <div class="demo-container">
      <ModernLoginForm />
    </div>
    
    <div class="demo-features">
      <h2>主要特性</h2>
      <div class="features-grid">
        <div class="feature-card">
          <div class="feature-icon">🎨</div>
          <h3>浮动标签</h3>
          <p>输入框获得焦点时，标签会优雅地向上浮动</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">📱</div>
          <h3>响应式设计</h3>
          <p>完美适配桌面端和移动端设备</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">🔒</div>
          <h3>安全防护</h3>
          <p>XSS防护和输入验证确保安全性</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">🌙</div>
          <h3>深色模式</h3>
          <p>自动适配系统深色模式</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">⚡</div>
          <h3>流畅动画</h3>
          <p>平滑的过渡动画和悬停效果</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">🌐</div>
          <h3>国际化</h3>
          <p>支持多语言和本地化</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import ModernLoginForm from './ModernLoginForm.vue'
</script>

<style scoped lang="less">
.demo-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.demo-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  
  h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  p {
    font-size: 20px;
    opacity: 0.9;
    margin: 0;
  }
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: center;
}

.demo-features {
  max-width: 1200px;
  margin: 0 auto;
  
  h2 {
    text-align: center;
    color: white;
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  
  .feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    
    &:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .feature-icon {
      font-size: 48px;
      margin-bottom: 16px;
    }
    
    h3 {
      color: #2c3e50;
      font-size: 24px;
      margin-bottom: 12px;
      font-weight: 600;
    }
    
    p {
      color: #7f8c8d;
      font-size: 16px;
      line-height: 1.6;
      margin: 0;
    }
  }
}

@media (max-width: 768px) {
  .demo-header {
    h1 {
      font-size: 32px;
    }
    
    p {
      font-size: 16px;
    }
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px;
    
    .feature-icon {
      font-size: 36px;
    }
    
    h3 {
      font-size: 20px;
    }
    
    p {
      font-size: 14px;
    }
  }
}
</style> 